package com.xyhy.core.web.log;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * @author robert
 * @since 2024-08-23
 */
@Getter
@Setter
@NoArgsConstructor
@ApiModel("系统：请求日志：bean")
public class RequestLogBean {

  @ApiModelProperty("请求url")
  private String url;

  @ApiModelProperty("请求ip")
  private String ip;

  @ApiModelProperty("请求时间")
  private LocalDateTime requestTime = LocalDateTime.now();

  @ApiModelProperty("耗时naco")
  private Integer costTime;

  @ApiModelProperty("请求参数")
  private String params;

  @ApiModelProperty("请求结果")
  private String result;

  @ApiModelProperty("是否发生错误")
  private Boolean error;

  @ApiModelProperty("异常")
  private Throwable exception;


}
